package com.altekis.kanbankaze.shared.events;

import com.altekis.kanbankaze.shared.UserAccount;
import com.google.gwt.event.shared.GwtEvent;

public class LoginCompleteEvent extends GwtEvent<LoginCompleteEventHandler>{
	public static Type<LoginCompleteEventHandler> TYPE = new Type<LoginCompleteEventHandler>();
	public UserAccount userAccount;
	public LoginCompleteEvent(UserAccount userAccount) {
		this.userAccount = userAccount;
	}

	@Override
	public Type<LoginCompleteEventHandler> getAssociatedType() {
	    return TYPE;
	}

	@Override
	protected void dispatch(LoginCompleteEventHandler handler) {
		handler.onLoginComplete(this);
	}
}
